package com.goldfish666.remote_control.entity.airConditioner;

import com.goldfish666.remote_control.entity.base.BaseAuditWithDistributedId;
import com.goldfish666.remote_control.entity.common.ByteValue;
import lombok.*;
import lombok.experimental.SuperBuilder;

import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.ManyToMany;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Inheritance(strategy = InheritanceType.JOINED)
//@BeanCopySource(source = InputDto.class, features = {CopyFeature.IGNORE_ALL_NULL_SOURCE_VALUE})
public class AirConditionerState extends BaseAuditWithDistributedId {

    @ManyToMany
    private List<ByteValue> values;
}
